package com.Dao;

import com.Util.MybatisUtils;
import com.po.BorrowCard;
import org.apache.ibatis.session.SqlSession;

import java.util.List;

public class BorrowCardDao {
    public List<BorrowCard> findBorrowCardAndInfoByStudyId2(BorrowCard borrowCard){
        SqlSession session = MybatisUtils.getSession();
        List<BorrowCard>  borrowCards = session.selectList("com.mapper.BorrowCardMapper.selectBorrowCardInfoById2",borrowCard);
        session.close();
        return borrowCards;
    }
    public List<BorrowCard> findBorrowCardAndInfoByStudyId(BorrowCard borrowCard){
        SqlSession session = MybatisUtils.getSession();
        List<BorrowCard>  borrowCards = session.selectList("com.mapper.BorrowCardMapper.selectBorrowCardInfoById",borrowCard);
        session.close();
        return borrowCards;
    }
}
